<?php
namespace app\model\admin\lineup;

use laytp\BaseModel;

class LineupTeam extends BaseModel
{
    protected $name = 'lineup_team';

    public function style(){
        return $this->hasOne(LineupStyle::class,"id","lineup_style_id")->bind(['style_name'=>"index_title"]);
    }

    public function collect(){
        return $this->hasOne(LineupTeamUserAction::class,"team_id","id")->where('type',1);
    }
}